﻿using System.ServiceModel;
using ProtoBuf.ServiceModel;

namespace Framework.Tests.Wcf.Client.ServiceDefinition
{
    [ServiceContract]
    public interface IContract
    {
        [OperationContract, ProtoBehavior]
        Toto Get();

        [OperationContract, ProtoBehavior]
        int Add(int a, int b);

        [OperationContract, ProtoBehavior]
        void JustDoIt();

        [OperationContract, ProtoBehavior]
        [FaultContract(typeof (ExceptionDetail))]
        Toto GetWithFaultContract();

        [OperationContract, ProtoBehavior]
        Toto GetWithExceptionNotInFaultContract();
    }
}